
import Model.Roller;
import Tool.GetDiffList;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class Main {
    public static void main(String[] args) {
       /* String gun7D = "52 00 00 00 00 00 00 06 7D 01 1C 00 00 00 00 08 01 00 07 00 00 06 00 06 00 00 00 00 00 87 00 00 00 00 01 B0 00 00 0A 04 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38";
        String gun7D1 = "52 00 00 00 00 00 00 06 7D 01 28 00 80 01 03 E9 01 02 2E 00 00 09 00 09 00 15 00 00 01 26 00 00 00 00 04 65 00 00 08 04 3C 98 00 01 00 00 0A 64 01 01 00 00 00 00 10 B6 00 01 17 FF 55 FF 55 1E 00 00 83 00 00 00 00 00 00 00 00 00 00 02 00 E0 00 00 00 00 AD";
        //             "52 00 00 00 00 00 00 06 7D 01 28 00 80 01 00 09 01 02 31 00 00 09 00 09 00 00 00 00 01 27 00 00 00 00 04 65 00 00 08 04 3C 9B 00 01 00 00 08 64 01 01 00 00 00 00 10 B6 00 01 18 FF 55 FF 55 1C 00 00 80 00 00 00 00 00 00 00 00 00 00 02 00 DF 00 00 00 00 B5"
        //bolun"
        String s = "36 00 00 00 00 00 00 06 7D 01 00 1B 00 00 61 05 01 00 05 20 00 07 00 17 00 00 00 17 00 02 00 00 00 07 01 00 00 00 02 05 00 00 00 00 00 00 00 00 00 00 00 00 00 01 A8";
        String D6 = "38 00 00 00 00 00 00 06 6D 01 1C 00 00 00 00 08 01 00 07 00 00 06 00 06 00 00 00 00 00 87 00 00 00 00 01 B0 00 00 0A 04 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 8E";
     String gun6D = "38 00 00 00 00 00 00 06 6D 01 1C 00 00 00 00 08 01 00 07 00 00 06 00 06 00 00 00 00 00 87 00 00 00 00 01 B0 00 00 0A 04 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 8E";
     String gun61 = "58 00 00 00 00 00 00 02 6D 01 39 00 80 09 03 E1 01 00 28 04 00 06 00 06 00 00 00 00 00 41 00 00 00 00 00 57 00 02 01 03 1E 11 00 00 00 00 00 50 0A 01 00 00 00 00 10 B5 05 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 9C";
     String dd = "38 00 00 00 00 00 00 02 6D 01 1C 00 00 00 0E 41 01 00 01 01 00 04 00 04 00 01 00 00 03 68 00 01 00 00 04 1C 00 00 01 00 00 37 00 00 00 00 09 64 00 00 23 01 0A 0A 00 00 88";
             //FF FF 16 00 00 00 00 00 00 04 0F 5A 00 00 00 00 00 00 00 00 00 40 00 00 C3
        //"20 00 00 00 00 00 00 63 45 2B 2B 32 2E 31 37 20 32 30 31 35 31 32 32 38 32 30 31 35 31 32 32 38 30"
                   //52 00 00 00 00 00 00 06 7D 01 28 00 80 01 00 09 01 02 31 00 00 09 00 09 00 00 00 00 01 27 00 00 00 00 04 65 00 00 08 04 3C 9B 00 01 00 00 08 64 01 01 00 00 00 00 10 B6 00 01 18 FF 55 FF 55 1C 00 00 80 00 00 00 00 00 00 00 00 00 00 02 00 DF 00 00 00 00 B5
        String gunalarm2 = "16 00 00 00 00 00 00 04 0F 5A 00 00 00 00 00 00 00 00 00 40 00 00 C3";
     String name = " 38 00 00 00 00 00 00 02 6D 01 01 00 00 00 00 01 01 01 23 00 00 06 00 06 00 00 00 00 03 6A 00 00 00 00 04 1E 00 02 06 00 3C 37 00 00 00 00 06 64 00 00 00 06 00 00 00 00 55 ";
        System.out.println("-------------"+gun7D1.length());
       *//* System.out.println("gun7D:"+gun7D.length());
        System.out.println("gun6D:"+D6.length());
        System.out.println("gunalarm2:"+gunalarm2.length());
        System.out.println("gun6D:"+dd.substring(24, 30));*//*
      String bo = "30 00 00 00 00 00 00 06 6D 01 00 2E 00 00 63 04 01 00 05 00 00 09 00 17 00 00 01 70 00 00 00 00 00 25 01 00 00 14 02 05 00 00 00 00 00 00 00 01 12";
                   2E 00 00 00 00 00 00 02 6D 01 00 2C 01 04 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 03 00 00 0F 0F 02 02 04 04 00 00 00 00 07
      String bo_7D = "36 00 00 00 00 00 00 06 7D 01 00 2E 00 00 63 04 01 00 05 00 00 09 00 17 00 00 01 70 00 00 00 00 00 25 01 00 00 14 02 05 00 00 00 00 00 00 00 00 00 00 00 00 00 01 28";
      System.out.println("gun6D:"+"0E 00 00 00 00 00 00 04 0F 5A 00 00 00 00 7B".length());*/
       /* String s = "!ALARM#UNITID:2#报警解除remove@/";
        String s1 = "报警解除";
        boolean flag = s1.contains(s1);
        System.out.println(flag);*/
        String s1 = "FF FF 52 00 00 00 00 00 00 06 7D 01 1C 06 01 00 0C E1 05 00 33 08 00 09 00 09 00 00 00 00 04 52 00 16 00 00 04 9C 00 00 01 00 00 37 00 40 00 00 0A 64 17 00 1E 01 19 05 0F 82 02 02 31 4E 38 2A 00 52 00 00 00 00 00 05 00 00 00 00 00 00 01 3F 01 40 01 3F 0C";
        String s3 = "FF FF 52 00 00 00 00 00 00 06 7D 01 39 00 80 09 09 E1 01 00 17 10 00 A1 04 A1 00 2F 00 01 9A 94 00 41 00 01 1F 85 00 03 0C 04 23 00 00 00 00 00 00 64 37 01 00 00 00 00 10 34 FB FA 12 18 16 35 00 00 82 00 00 00 27 0F 00 00 00 00 04 00 00 DD 00 00 00 00 4D";
        String s4 = "FF FF 52 00 00 00 00 00 00 06 7D 01 39 00 80 09 09 E1 01 00 17 10 00 A1 04 A1 00 2F 00 01 9A 94 00 41 00 01 1F 85 00 03 0C 04 23 00 00 00 00 00 00 64 37 01 00 00 00 00 10 34 FB FA 12 18 16 35 00 00 82 00 00 00 00 3E 00 00 00 00 04 00 00 DD 00 00 00 00 55";
        String s5 = "FF FF 52 00 00 00 00 00 00 06 7D 01 01 07 A0 01 05 E1 05 02 28 09 00 09 00 09 00 0D 00 00 05 BF 00 00 00 00 04 B5 00 02 01 00 32 23 00 00 02 00 0A 8C 00 00 2D 01 0F 0F 10 04 01 01 11 17 10 1A 00 00 00 00 00 00 00 04 00 00 00 00 00 00 01 37 00 00 00 00 19";
        String s6 = "52 00 00 00 00 00 00 06 7D 01 01 07 A0 01 05 E1 05 02 28 09 00 09 00 09 00 0D 00 00 05 BF 00 00 00 00 04 B5 00 02 01 00 32 23 00 00 02 00 0A 8C 00 00 2D 01 0F 0F 10 04 01 01 11 17 10 1A 00 00 00 00 00 00 00 04 00 00 00 00 00 00 01 37 00 00 00 00 19";
        String s7 = "30 00 00 00 00 00 00 06 7D 01 03 00 00 00 00 00 00 14 00 14 00 00 00 00 02 03 01 05 04 00 00 08 00 02 01 00 01 16 17 00 EF 09 00 6B 38 E0 00 05 A7";
        String s8 = "0E 00 00 00 00 00 00 04 0F 5A 00 00 00 03 7F";
        String s9 = "FF FF 52 00 00 00 00 00 00 06 7D 01 28 00 80 01 0E C9 01 00 01 04 00 3C 04 3C 00 4B 00 02 51 BA 00 6B 00 01 CC CB 00 02 08 04 1E 00 00 00 00 00 02 64 37 1E 00 0C 00 00 10 B6 FA F9 14 19 16 3F 00 00 80 00 00 00 00 24 00 00 00 00 01 61 00 E2 00 00 00 00 49";
        /**
         *
         * FF FF 52 00 00 00 00 00 00 06 7D 01 39 05 00 08 09 E1 05 01 2B 10 00 A3 04 A3 00 1A 00 01 9B 3B 00 44 00 01 20 A5 00 01 05 05 3C 00 00 00 06 00 00 78 00 00 00 00 00 00 10 06 FD FC 1C 1F 1E 38 00 00 C2 00 00 00 00 1A 00 00 00 00 03 60 00 DA 00 00 00 00 0A
         *
         *
         *
         * */
       /*List s22 = new ArrayList();
       s22.add("1");
        List s33 = new ArrayList();
        s33.add("2");
       Roller roller = new Roller();
        //System.out.println(roller.get7DData(s7));

        System.out.println(roller.get7DData(s9));*/
        /*String SETUPDNBinary = "10000011";
        String SETUPMDWD57 = SETUPDNBinary.substring(0,3);
        String SETUPMDWD34 = SETUPDNBinary.substring(3,5);
        String SETUPMDWD02 = SETUPDNBinary.substring(5,8);
        System.out.println(SETUPMDWD57);
        System.out.println(SETUPMDWD34);
        System.out.println(SETUPMDWD02);*/
       /* HashMap<Integer,Integer> hashMap= new HashMap<Integer,Integer>();
        hashMap.put(1,1);
        hashMap.put(1,2);
        System.out.println(hashMap.get(1));
*/
        boolean flag = true;
        int s = 0;
        while (flag && s < 3) {
            s++;
            System.out.println(s);
        }
    }
}
